<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta charset="utf-8" />
    <title>云路通项目管理系统</title>
    <meta name="description" content="overview &amp; stats" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <!-- basic styles -->
    <link href="__CSS__/bootstrap.min.css" rel="stylesheet" />
    <link rel="stylesheet" href="__CSS__/font-awesome.min.css" />
    <!-- ace styles -->
    <link rel="stylesheet" href="__CSS__/ace.min.css" />
    <!--page cover style-->
    <link rel="stylesheet" href="__CSS__/my-style2.css">
</head>

<body class="skin-1">
<!-- head navbar 头部导航条 -->
<div class="navbar navbar-default" id="navbar">
    <div class="navbar-container" id="navbar-container">
        <!--头部左边logo图标-->
        <div class="navbar-header pull-left">
            <a class="navbar-brand">
                <img src="/static/images/logo.png" class="logo-img">
            </a>
            <nav role="navigation" class="navbar-menu pull-left collapse navbar-collapse">
                <ul class="nav navbar-nav">
                    {volist name="leftMenu" id="vo"}
                        <li class="">
                            <a href="/admin/{$vo.ourl}" class="dropdown-toggle {eq name='vo.active' value='1'} on {/eq}" data-toggle="">
                                {$vo.name}
                            </a>
                        </li>
                    {/volist}
                </ul>
            </nav>
        </div>
        <!--头部右边列表-->
        <div class="navbar-header pull-right" role="navigation">
            <ul class="nav ace-nav">
                <li>
                                <small>欢迎,</small>
                    <span style="font-weight: bold;">{:session('user_name')}</span>
                    
                </li>
                <li>
                    <a class="flush" onclick="refresh();" style="cursor:pointer;">刷新</a>
                </li>
                <li>
                    <a onclick="loginout();" style="cursor:pointer;">退出</a>
                </li>
            </ul>
        </div>
    </div>
</div>
<!-- main container 页面主体容器 -->
<div class="main-container" id="main-container">
    <!--页面容器-->
    <div class="main-container-inner">

		<!-- 下拉按钮区块 -->
        <a class="menu-toggler" id="menu-toggler">
            <span class="menu-text"></span>
        </a>

        <!-- 侧边栏区块 -->
        <div class="sidebar" id="sidebar">
            <!-- 侧边栏导航条 -->
            <ul class="nav nav-list" style="top: 0px;">
                {volist name="leftMenu" id="vo"}
                {eq name='vo.active' value='1'}
                    {volist name="vo.child" id="cvo"}
                        {eq name="cvo.active" value='1'}
                            {notempty name="cvo.url"}
                            <li class="active open">
                            {else/}
                            <li class="active">
                            {/notempty}
                        {else/}
                            <li>
                        {/eq}
                        {notempty name="cvo.url"}
                            <a href="/admin/{$cvo.ourl}">
                            <i class="menu-icon fa {$cvo.class}"></i>
                            <span class="menu-text"> {$cvo.name} </span>
                            </a>
                        {else/}
                            <a class="dropdown-toggle">
                            <i class="menu-icon fa fa-bullhorn"></i>
                            <span class="menu-text"> {$cvo.name} </span>
                            <b class="arrow fa fa-angle-down"></b>
                            </a>
                        {/notempty}
                        <b class="arrow"></b>

                        {notempty name="cvo.child"}
                            {eq name="cvo.active" value='1'}
                                <ul class="submenu nav-show" style="display: block;">
                            {else/}
                                <ul class="submenu">
                            {/eq}
                            {volist name="cvo.child" id="ccvo"}
                                {eq name="ccvo.active" value='1'}
                                    <li class="active">
                                {else/}
                                    <li>
                                {/eq}
                                    <a href="/admin/{$ccvo.ourl}">
                                        <i class="menu-icon fa fa-caret-right"></i>
                                        <span class="menu-text"> {$ccvo.name} </span>
                                    </a>
                                    <b class="arrow"></b>
                                </li>
                                {/volist}
                            </ul>
                        {/notempty}
                    </li>
                    {/volist}
                {/eq}
                {/volist}


            </ul>
        </div>
        <!-- 页面内容区块 -->
        <!-- basic scripts -->
        <script src="__STATIC__/js/jquery-1.11.3.min.js"></script>
        <div class="main-content">
             {__CONTENT__}
        </div>
    </div>
</div>

<!--[if IE]>
<script src="resource/js/jquery-1.11.1.min.js"></script>
<![endif]-->
<!-- if phone loader jquery.mobile.js 移动端加载mobile.js -->
<script type="text/javascript">
    if("ontouchend" in document) document.write("<script src='js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
</script>

<script src="__STATIC__/js/bootstrap.min.js"></script>
<!--<script src="resource/js/typeahead-bs2.min.js"></script>-->
<!-- page specific plugin scripts -->
<!-- ace scripts -->

<script src="__STATIC__/js/ace.min.js"></script>
<script src="__STATIC__/js/ace-elements.min.js"></script>
<script src="__STATIC__/js/common.js"></script>
<script src="__PLUGIN__/layer/layer.js"></script>

<script>
    var u = $(".active").parent('ul');

    var uc = u.attr("class");//

    if (uc == 'submenu') {
        u.parent().attr("class", "open active");
        if(u.parent().parent().attr('class')=='submenu'){
            u.parent().parent().parent().attr("class","open active");
        }
    }

    // 页面刷新
    function refresh() {
        location.reload();
    }

    // 退出登录
    function loginout() {
        location.href = "{:url('login/logout')}";
    }

    //弹出图片
    function alert_img(url, width, heigth, title) {

        art.dialog({
            padding: 0,
            title: title,
            content: '<img src="' + url + '" width="' + width + '" height="' + heigth + '" />',
            lock: true
        });
    }
    //弹出确认操作
    function alert_del(url, title) {
        art.dialog({
            lock: true,
            background: '#300', // 背景色
            opacity: 0.87, // 透明度
            content: title,
            ok: function () {
                return window.location.href = url;
            },
            cancel: true
        });
    }
</script>
</body>
</html>
